from scrapy import  cmdline
cmdline.execute('scrapy crawl book -o books.csv'.split())